import request from "@/axios/request.js"

export function setSettingRegistryAPI (data) {
  return request.put(
    `judge-backend/manage/sys/config/open/reg?updateStatus=${data}`
  )
}

export function getSettingRegistryAPI () {
  return request.get(
    `/judge-backend/sys/config/open/reg`
  )
}

export function setSettingUserAPI (data) {
  return request.put(
    `/judge-backend/manage/sys/config/open/user/update/school/info?updateStatus=${data}`
  )
}

export function getSettingUserAPI () {
  return request.get(
    `/judge-backend/sys/config/open/user/update/school/info`
  )
}

export function getSettingColorAPI () {
  return request.get(`/judge-backend/sys/config/background/color`)
}

export function setSettingColorAPI (color) {
  return request.put(`/judge-backend/manage/sys/config/background/color?color=${color}`)
}